package models

import (
	"time"
	"tuowei.com/common/models"
)

type SysLiveCourse struct {
	models.Model
	Name       string    `json:"name" gorm:"varchar(20);comment:直播课程名称"`
	Label      string    `json:"label" gorm:"varchar(10);comment:直播标签"`
	Price      float64   `json:"price" gorm:"decimal(10,2);comment:直播课程价格"`
	Cover      string    `json:"cover" gorm:"varchar(255);comment:直播课程封面"`
	LiveUrl    string    `json:"live_url" gorm:"varchar(255);comment:直播链接地址"`
	StartTime  time.Time `json:"start_time" gorm:"datetime;comment:直播开始时间"`
	EndTime    time.Time `json:"end_time" gorm:"datetime;comment:直播结束时间"`
	IsShow     uint32    `json:"is_show" gorm:"tinyint(1);comment:展示状态 0-不展示 1-展示"`
	StatusText string    `json:"status_text" gorm:"-"`
	models.ModelTime
	models.ControlBy
}

func (SysLiveCourse) TableName() string {
	return "sys_live_course"
}
